import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    token: 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJjYXJBZG1pbiIsInNjb3BlIjpbImFsbCJdLCJpZCI6IjE5NCIsImV4cCI6MTYzNzgyNjUxMSwiYXV0aG9yaXRpZXMiOlsiMTY3X-i9pui-hueuoeeQhuWRmCJdLCJqdGkiOiI2YjViNmQzMy01MTE2LTQ3YTgtYTE5Ny01ZjY2MmU1MTU0Y2UiLCJjbGllbnRfaWQiOiJhZG1pbi1hcHAiLCJyZWFsbmFtZSI6Iui9pui-hueuoeeQhuWRmCJ9.hkVQZK3DXtYdPAVDIdNGdzyNo5Jhc_t_AiPpJ1vO58unWrb9G0F1JwTe1f-ZAdLosZB9e3wC-ooEQ9g2-UGwn5z8DLnQZe55Dr61Bvre63a28jDD09faNIP8tRhwZdHcntnbQv2wscp7VJcI2i7yZHVeynSAtL0CuEel-vg6K-e3m9G0ITsbWS27V20MxTbKHGpu2Zoat59BYRmd6hfW-EcG-awL3pADw-NWWM1kd1DlCLWJbXVZ0xcI2cFRZk1X4JegYpbsyC1K8KCIHGxYMMmvDGeTx6DjrdVEOzNHohCdqxM1k9A5KuZRClCiydpCTIT4Ehr_GbcqO2SvU_IHSQ',
    width: document.documentElement.clientWidth,
    height: document.documentElement.clientHeight
  },
  mutations: {
    SET_APP1_API: (state, val) => {
      state.APP1_API = val
    },
    SET_APP2_API: (state, val) => {
      state.APP2_API = val
    }
  },
  actions: {
  },
  modules: {
  },
  plugins: [createPersistedState()]
})
